﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using IntegrationTests.CompositeDemoSvcRef;
using IntegrationTests.DemoSvcRef;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace IntegrationTests
{
    [TestClass]
    public class ServiceMessagelogTests
    {
        [TestMethod]
        public void BasicTest()
        {
            var client = new DemoServiceClient();
            var header = new MyHeader();
            header.MyTrackingId = Guid.NewGuid();
            
            MyDataContractInput input = new MyDataContractInput();
            input.TestItem1 = "12345";
            input.TestItem2 = "987654321";

            

            var result = client.MyTestOperation(header, input);

        }

        [TestMethod]
        public void BasicCompositeServiceTest()
        {
            var client = new CompositeDemoClient();
            var input = new MyDataContractInputComposite();
            input.TestItem1Composite = "test123";
            input.TestItem2Composite = "test321";
            var result = client.Do(input);
            Assert.IsNotNull(result);
        }
    }
}
